<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>pre</title>
</head>
<body>
<!--
The <code> HTML element displays its contents styled in a fashion intended to indicate that the text is a short fragment of computer code. By default, the content text is displayed using the user agent's default monospace font.

<code> HTML 元素以一种旨在表明文本是计算机代码的短片断的方式显示其内容。 默认情况下，内容文本使用用户代理的默认等宽字体显示。
-->

<p>The <code>push()</code> method adds one or more elements to the end of an array and returns the new length of the array.</p>


<p>The function <code>selectAll()</code> highlights all the text in the
  input field so the user can, for example, copy or delete the text.</p>


<!--
To represent multiple lines of code, wrap the <code> element within a <pre> element.
The <code> element by itself only represents a single phrase of code or line of code.

要表示多行代码，请将 <code> 元素包装在 <pre> 元素中。 <code> 元素本身仅代表一个代码短语或一行代码。


A CSS rule can be defined for the `code` selector to override the browser's default font face.
Preferences set by the user might take precedence over the specified CSS.

可以为代码选择器定义 CSS 规则以覆盖浏览器的默认字体。 用户设置的首选项可能优先于指定的 CSS。
-->
<code>
  let a = 123;
  console.log(a);
  function abc(){}
  class bb{
    constructor(){}
    do(){}
  }
  for(let i=0;i<3;++i){
    console.log(i)
  }
  console.log(a)
  const a = require('hightlight.js')
</code>
<!-- ↑ 会在一行显示,并不是我们所期望的, 故↓ -->
<pre>
  <code>
let a = 123;
console.log(a);
function abc(){}
class bb{
  constructor(){}
  do(){}
}
for(let i=0;i<3;++i){
  console.log(i)
}
console.log(a)
const a = require('hightlight.js')
  </code>
</pre>
</body>
</html>
